package org.example.rubbish.dto;



import java.time.LocalDateTime;

//用于表示报警数据的传输对象
public class AlarmDTO {
    private String alarmId;
    private String title;
    private String content;
    private String source;
    private String level;
    private String type;
    private LocalDateTime timestamp;
    private Object extraData;

    // 构造方法
    public AlarmDTO(String alarmId, String title, String content, String source,
                    String level, String type, Object extraData) {
        this.alarmId = alarmId;
        this.title = title;
        this.content = content;
        this.source = source;
        this.level = level;
        this.type = type;
        this.timestamp = LocalDateTime.now();
        this.extraData = extraData;
    }

    public AlarmDTO() {
    }

    public AlarmDTO(String alarmId, String title, String content, String source, String level, String type, LocalDateTime timestamp, Object extraData) {
        this.alarmId = alarmId;
        this.title = title;
        this.content = content;
        this.source = source;
        this.level = level;
        this.type = type;
        this.timestamp = timestamp;
        this.extraData = extraData;
    }

    public String getAlarmId() {
        return alarmId;
    }

    public void setAlarmId(String alarmId) {
        this.alarmId = alarmId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public LocalDateTime getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(LocalDateTime timestamp) {
        this.timestamp = timestamp;
    }

    public Object getExtraData() {
        return extraData;
    }

    public void setExtraData(Object extraData) {
        this.extraData = extraData;
    }
}


